{
  "variables": [
    {
      "name": "start_time",
      "type": "PX_STRING",
      "description": "The relative start time of the window. Current time is assumed to be now",
      "defaultValue": "-5m"
    }
  ],
  "globalFuncs": [
    {
      "outputName": "process_stats",
      "func": {
        "name": "process_stats",
        "args": [
          {
            "name": "start_time",
            "variable": "start_time"
          }
        ]
      }
    },
    {
      "outputName": "network_stats",
      "func": {
        "name": "network_stats",
        "args": [
          {
            "name": "start_time",
            "variable": "start_time"
          }
        ]
      }
    }
  ],
  "widgets": [
    {
      "name": "Nodes",
      "position": {
        "x": 0,
        "y": 0,
        "w": 4,
        "h": 3
      },
      "func": {
        "name": "nodes",
        "args": [
          {
            "name": "start_time",
            "variable": "start_time"
          }
        ]
      },
      "displaySpec": {
        "@type": "types.px.dev/px.vispb.Table"
      }
    },
    {
      "name": "CPU Usage",
      "position": {
        "x": 4,
        "y": 0,
        "w": 4,
        "h": 3
      },
      "globalFuncOutputName": "process_stats",
      "displaySpec": {
        "@type": "types.px.dev/px.vispb.TimeseriesChart",
        "timeseries": [
          {
            "value": "cpu_usage",
            "mode": "MODE_LINE",
            "series": "node",
            "stackBySeries": false
          }
        ],
        "title": "",
        "yAxis": {
          "label": "CPU usage"
        },
        "xAxis": null
      }
    },
    {
      "name": "Sent Network Traffic",
      "position": {
        "x": 8,
        "y": 0,
        "w": 4,
        "h": 3
      },
      "globalFuncOutputName": "network_stats",
      "displaySpec": {
        "@type": "types.px.dev/px.vispb.TimeseriesChart",
        "timeseries": [
          {
            "value": "tx_bytes_per_ns",
            "mode": "MODE_LINE",
            "series": "node",
            "stackBySeries": false
          }
        ],
        "title": "",
        "yAxis": {
          "label": "Sent Data"
        },
        "xAxis": null
      }
    },
    {
      "name": "Received Network Traffic",
      "position": {
        "x": 0,
        "y": 3,
        "w": 4,
        "h": 3
      },
      "globalFuncOutputName": "network_stats",
      "displaySpec": {
        "@type": "types.px.dev/px.vispb.TimeseriesChart",
        "timeseries": [
          {
            "value": "rx_bytes_per_ns",
            "mode": "MODE_LINE",
            "series": "node",
            "stackBySeries": false
          }
        ],
        "title": "",
        "yAxis": {
          "label": "Received Data"
        },
        "xAxis": null
      }
    },
    {
      "name": "Bytes read",
      "position": {
        "x": 4,
        "y": 3,
        "w": 4,
        "h": 3
      },
      "globalFuncOutputName": "process_stats",
      "displaySpec": {
        "@type": "types.px.dev/px.vispb.TimeseriesChart",
        "timeseries": [
          {
            "value": "total_disk_read_throughput",
            "mode": "MODE_LINE",
            "series": "node",
            "stackBySeries": false
          }
        ],
        "title": "",
        "yAxis": {
          "label": "Bytes read"
        },
        "xAxis": null
      }
    },
    {
      "name": "Bytes written",
      "position": {
        "x": 8,
        "y": 3,
        "w": 4,
        "h": 3
      },
      "globalFuncOutputName": "process_stats",
      "displaySpec": {
        "@type": "types.px.dev/px.vispb.TimeseriesChart",
        "timeseries": [
          {
            "value": "total_disk_write_throughput",
            "mode": "MODE_LINE",
            "series": "node",
            "stackBySeries": false
          }
        ],
        "title": "",
        "yAxis": {
          "label": "Bytes written"
        },
        "xAxis": null
      }
    },
    {
      "name": "Pods",
      "position": {
        "x": 0,
        "y": 6,
        "w": 12,
        "h": 3
      },
      "func": {
        "name": "pods_by_node",
        "args": [
          {
            "name": "start_time",
            "variable": "start_time"
          }
        ]
      },
      "displaySpec": {
        "@type": "types.px.dev/px.vispb.Table",
        "gutterColumn": "status"
      }
    }
  ]
}
